home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / clib / gadtools_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-28  |  2.9 KB  |  83 lines

  1. #ifndef  CLIB_GADTOOLS_PROTOS_H
  2. #define  CLIB_GADTOOLS_PROTOS_H
  3.  
  4. /*
  5. **    $VER: gadtools_protos.h 40.1 (17.5.1996)
  6. **
  7. **    C prototypes. For use with 32 bit integers only.
  8. **
  9. **    Copyright © 1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif /* __cplusplus */
  16.  
  17. #ifndef  EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20. #ifndef  INTUITION_INTUITION_H
  21. #include <intuition/intuition.h>
  22. #endif
  23. #ifndef  UTILITY_TAGITEM_H
  24. #include <utility/tagitem.h>
  25. #endif
  26. #ifndef  LIBRARIES_GADTOOLS_H
  27. #include <libraries/gadtools.h>
  28. #endif
  29.  
  30. /*--- functions in V36 or higher (Release 2.0) ---*/
  31.  
  32. /* Gadget Functions */
  33.  
  34. struct Gadget *CreateGadgetA( ULONG kind, struct Gadget *gad, CONST struct NewGadget *ng, CONST struct TagItem *taglist );
  35. struct Gadget *CreateGadget( ULONG kind, struct Gadget *gad, CONST struct NewGadget *ng, Tag tag1, ... );
  36. VOID FreeGadgets( struct Gadget *gad );
  37. VOID GT_SetGadgetAttrsA( struct Gadget *gad, struct Window *win, struct Requester *req, CONST struct TagItem *taglist );
  38. VOID GT_SetGadgetAttrs( struct Gadget *gad, struct Window *win, struct Requester *req, Tag tag1, ... );
  39.  
  40. /* Menu functions */
  41.  
  42. struct Menu *CreateMenusA( CONST struct NewMenu *newmenu, CONST struct TagItem *taglist );
  43. struct Menu *CreateMenus( CONST struct NewMenu *newmenu, Tag tag1, ... );
  44. VOID FreeMenus( struct Menu *menu );
  45. BOOL LayoutMenuItemsA( struct MenuItem *firstitem, APTR vi, CONST struct TagItem *taglist );
  46. BOOL LayoutMenuItems( struct MenuItem *firstitem, APTR vi, Tag tag1, ... );
  47. BOOL LayoutMenusA( struct Menu *firstmenu, APTR vi, CONST struct TagItem *taglist );
  48. BOOL LayoutMenus( struct Menu *firstmenu, APTR vi, Tag tag1, ... );
  49.  
  50. /* Misc Event-Handling Functions */
  51.  
  52. struct IntuiMessage *GT_GetIMsg( struct MsgPort *iport );
  53. VOID GT_ReplyIMsg( struct IntuiMessage *imsg );
  54. VOID GT_RefreshWindow( struct Window *win, struct Requester *req );
  55. VOID GT_BeginRefresh( struct Window *win );
  56. VOID GT_EndRefresh( struct Window *win, LONG complete );
  57. struct IntuiMessage *GT_FilterIMsg( CONST struct IntuiMessage *imsg );
  58. struct IntuiMessage *GT_PostFilterIMsg( struct IntuiMessage *imsg );
  59. struct Gadget *CreateContext( struct Gadget **glistptr );
  60.  
  61. /* Rendering Functions */
  62.  
  63. VOID DrawBevelBoxA( struct RastPort *rport, LONG left, LONG top, LONG width, LONG height, CONST struct TagItem *taglist );
  64. VOID DrawBevelBox( struct RastPort *rport, LONG left, LONG top, LONG width, LONG height, Tag tag1, ... );
  65.  
  66. /* Visuals Functions */
  67.  
  68. APTR GetVisualInfoA( struct Screen *screen, CONST struct TagItem *taglist );
  69. APTR GetVisualInfo( struct Screen *screen, Tag tag1, ... );
  70. VOID FreeVisualInfo( APTR vi );
  71.  
  72. /*--- functions in V39 or higher (Release 3) ---*/
  73.  
  74. LONG GT_GetGadgetAttrsA( struct Gadget *gad, struct Window *win, struct Requester *req, CONST struct TagItem *taglist );
  75. LONG GT_GetGadgetAttrs( struct Gadget *gad, struct Window *win, struct Requester *req, Tag tag1, ... );
  76.  
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif /* __cplusplus */
  81.  
  82. #endif   /* CLIB_GADTOOLS_PROTOS_H */
  83.